<!--: layout("/layout-simple.html", {"title":"注册新用户"}) { -->

<div id="signup-form" class="modal" tabindex="-1" data-backdrop="static" data-keyboard="false">
    <form id="user" class="form-horizontal" action="signup.do" method="post">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title">新用户注册</h4>
            </div>
            <div class="modal-body">

                ${message!}
                <div class="control-group">
                    <label for="name" class="control-label">用户名</label>
                    <div class="controls">
                        <input id="name" name="name" type="email" required placeholder="Email address" value="${user.name!}"/>
                    </div>
                </div>            
                <div class="control-group">
                    <label for="password" class="control-label">密码</label>
                    <div class="controls">
                        <input id="password" name="password" type="password" required placeholder="Password" value=""/>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="submit" class="btn btn-default">注册</button>
            </div>
        </div>
    </form>
</div>
<script>
    $('#signup-form').modal();
</script>

<!--: } -->
